/**
 * 
 */
package com.gragra.util.tests;
import static org.junit.Assert.*;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
import com.gragra.util.GlobalNumberer;
/**
 * @author Christoph Teichmann
 * created Oct 28, 2012 8:23:11 PM
 * @version 0.1
 */
public class TestGlobalNumberer
{
	/**
	 * Test method for {@link com.gragra.util.GlobalNumberer#nextNumber()}.
	 */
	@Test
	public void testNextNumber()
	{
		GlobalNumberer gn = new GlobalNumberer();
		Set<Integer> seen = new HashSet<Integer>();
		for(int i=0;i<100;++i)
		{
			Integer k = gn.nextNumber();
			assertFalse(seen.contains(k));
			seen.add(k);
		}
	}
}